function checkform(spanname,regexval,tishi){
    var span = document.getElementById(spanname)
    if(regexval){
        span.innerHTML="<img src='../img/dui.png'>"
    }else{
        span.innerHTML="<img src='../img/cuo.png'>"+tishi
    }
    return regexval
}

function selectAll(status,checkboxName){
    var checkboxArr=document.getElementsByName(checkboxName);
    for (var i = 0;i<checkboxArr.length;i++) {
        checkboxArr[i].checked = status;
    }
}
//是否有复选框被选中
function checkIsSelect(checkboxName) {
    var checkboxArr = document.getElementsByName(checkboxName);
    var flag = false;
    for (let i = 0;i<checkboxArr.length;i++){
        if (checkboxArr[i].checked){
            flag = true;
            break;
        }
    }
    //如果有被选中的就将flag就为true
    if (!flag){
        alert("请至少选中一个");
        return true;
    }
    return false;
}